home *** CD-ROM | disk | FTP | other *** search
- unit Gifbptst;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, Ulbitmap, Gifbitmp;
-
- type
- TForm1 = class(TForm)
- GIFBitmap1: TGIFBitmap;
- procedure FormCreate(Sender: TObject);
- procedure FormPaint(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- GIFBitmap1.Load_GIF_File;
- end;
-
- procedure TForm1.FormPaint(Sender: TObject);
- begin
- canvas.copyrect( rect( 0 , 0 , GIFBitmap1.TheBMP.Width ,
- GIFBitmap1.TheBMP.Height ) , GIFBitmap1.TheBMP.Canvas ,
- rect( 0 , 0 , GIFBitmap1.TheBMP.Width , GIFBitmap1.TheBMP.Height ));
- end;
-
- end.
-